﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace HT.Future.Entities
{
    /// <summary>
    /// 商品图片
    /// </summary>
    [Table("T_ProductImage")]
    public class ProductImage : BaseEntity
    {
        /// <summary>
        /// 图片名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 大图
        /// </summary>
        [NotMapped]
        public string Big { get; set; }
        /// <summary>
        /// 小图
        /// </summary>
        [NotMapped]
        public string Small { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 所属商品实体
        /// </summary>
        public virtual Product Product { get; set; }

    }
}
